#!/usr/bin/env python
# -*- coding: utf8 -*-
# title       :
# description :
# author      :'ShenMeng'

import yaml
import os

def main(*args, **kwargs):
    copy_paths = kwargs.get('copy_paths')
    frame_range = kwargs.get('frame_range')
    if copy_paths and frame_range:
        mov_path = copy_paths[0]
        out_path = os.path.splitext(mov_path)[0]+'.txt'
        out_path = out_path.replace('\\', '/') 
        with open(out_path, 'w') as f:
            yaml.dump(frame_range, f)
        
